package com.shen.pojo.Car;

/**
 * Author:shen
 * CreateDate:2020/4/29.
 * Function:
 */
public class Car {
    private String color;
    private double price;

    public Car() {
    }

    public Car(String color, double price) {
        this.color = color;
        this.price = price;
    }

    public void start(){
        System.out.println("启动");
        Engine engine=new Engine();
        engine.first();
        engine.second();
        engine.tree();
        engine.four();
    }
    public void stop(){
        System.out.println("停止");
    }
    public void honking(){
        System.out.println("鸣笛");
    }

}
